
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MovieLister tmpLister = new MovieLister(new ColonDelimitedMovieFinder());
		tmpLister.moviesDirectedBy("Quentin Tarantino");
		Movie[] filterdMovies = tmpLister.getFoundMovies();
		
		//Ausgabe der gefundenen Filme
		System.out.println("----Colon----");
		for(int i=0;i<filterdMovies.length;i++){
			System.out.println(filterdMovies[i].getTitle()+" - "+filterdMovies[i].getDirector());
		}
		
		tmpLister.setMovieFinder(new XMLMovieFinder());
		tmpLister.moviesDirectedBy("Quentin Tarantino");
		filterdMovies = tmpLister.getFoundMovies();
		
		//Ausgabe der gefundenen Filme
		System.out.println("----XML----");
		for(int i=0;i<filterdMovies.length;i++){
			System.out.println(filterdMovies[i].getTitle()+" - "+filterdMovies[i].getDirector());
		}
	}
}
